<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>数组去掉0</title>
	</head>
	<body>
		<script>
	var arrNew=[];
var arr=[0,9,0,9,78,6,5];
for(var  i in arr){
if(arr[i]!==0){
arrNew.push(arr[i]);
}
}
console.log(arrNew)


		</script>
	</body>
</html>
